﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Article
/// </summary>
public class Article
{
	/// <summary>
    /// Fields of Article
    /// </summary>
    #region Fields
    int id;   
    string title;   
    string content;  
    string tag;  
    DateTime modifiedDate; 
    int modifiedBy;
    bool state;
    #endregion

    /// <summary>
    /// Properties of Article
    /// </summary>
    #region Properties
    public int Id
    {
        get { return id; }
        set { id = value; }
    }
    public string Title
    {
        get { return title; }
        set { title = value; }
    }
    public string Content
    {
        get { return content; }
        set { content = value; }
    }
    public string Tag
    {
        get { return tag; }
        set { tag = value; }
    }
    public bool State
    {
        get { return state; }
        set { state = value; }
    }
    public DateTime ModifiedDate
    {
        get { return modifiedDate; }
        set { modifiedDate = value; }
    }
    public int ModifiedBy
    {
        get { return modifiedBy; }
        set { modifiedBy = value; }
    }
    #endregion

    /// <summary>
    /// Constructures Article
    /// </summary>
    #region Constructures
    public Article()
    {
        id = 0;
        title = "";
        content="";
        tag="";
        modifiedBy=0;
        modifiedDate= new DateTime();

    }
    public Article(int id,string title, string content, string tag, DateTime modifiedDate, int modifiedBy )
	{
        this.id = id;
        this.title = title;
        this.content = content;
        this.tag = tag;
        this.modifiedDate = modifiedDate;
        this.modifiedBy = modifiedBy;

    }
    #endregion
}